
import * as vscode from 'vscode';
import { TestAgentView } from './webview/TestAgentView';

// this method is called when extension is activated
export function activate(context: vscode.ExtensionContext) {

console.log('TestAgent extension is now active!');

    // 1. 创建 TestAgentView 实例
    const provider = new TestAgentView(context.extensionUri, context);

    // 2. 注册 Webview Provider
    const disposable = vscode.window.registerWebviewViewProvider(
        TestAgentView.viewType, // 确保这个 ID 与 package.json 中一致
        provider
    );

    context.subscriptions.push(disposable);
}


// this method is called when  extension is deactivated
export function deactivate() {}
